package com.lujieni.springbootnacos.client.controller;

import com.lujieni.springbootnacos.client.feign.NacosServerApi;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class HelloController {

    private final NacosServerApi nacosServerApi;

    @GetMapping("/hello")
    public String hello(){
        return nacosServerApi.hello();
    }


}
